<template>
  <div>
    <header-bar></header-bar>
    <div class="home_page f_clear">
      <div class="fixed_bg"></div>
      <div class="home_container">
        <div class="home_content">
          <div class="left_panel">
            <div class="user_wrapper"></div>
            <div class="adaptive_scroll">
              <div style="margin-top: 8px"></div>
              <div class="scroll_content"></div>
            </div>
          </div>
          <center-panel></center-panel>
          <div class="right_panel">
            <div class="notice_panel"></div>
            <div class="ad_panel"></div>
            <div class="adaptive_scroll">
              <div style="margin-top: 0px"></div>
              <div class="scroll_content"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="back_top"></div>
    </div>
  </div>
</template>

<script>
import CenterPanel from "./component/center_panel";
import HeaderBar from "./component/header_bar";
export default {
  components: {
    CenterPanel,
    HeaderBar,
  },
  data() {
    return {
      title: "Hello",
    };
  },
  mounted() {},
};
</script>

<style lang="scss">
/deep/ * {
  margin: 0;
  padding: 0;
  list-style: none;
}
/deep/ .f_clear {
  &::after,
  &::before {
    content: "";
    display: table;
    clear: both;
  }
}
.home_page {
  width: 100%;
  .home_container {
    width: 100%;
    margin-top: 8px;
    .home_content {
      width: 1160px;
      margin: 0 auto;
      display: flex;
      flex-direction: row;
      position: relative;
      .left_panel {
        width: 244px;
        display: flex;
        flex-direction: column;
      }
      .center_panel {
        width: 632px;
        margin: 0 8px;
      }
      .right_panel {
        width: 268px;
        display: flex;
        flex-direction: column;
      }
    }
  }
}
.user_wrapper {
  position: relative;
  width: 244px;
  height: 188px;
  background-color: #fff;
}
.notice_panel {
  position: relative;
  width: 268px;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
  height: 155px;
}
.ad_panel {
  width: 268px;
  height: 156px;
  margin-bottom: 8px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background-color: #fff;
}
.adaptive_scroll {
  min-height: 744px;
  flex: 1;
}
.scroll_content {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #fff;
  height: 100px;
}
.fixed_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("/static/bg/bg.png");
}
</style>
